package com.stopboot.code.generator.modle;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @description:
 * @author: Lianyutao
 * @create: 2019-10-16 14:28
 * @version:
 **/

@Data
public class TableBo implements Serializable {

    private String tableName;
    private String tableSchema;
    private String engine;
    private String tableCollation;
    private String tableComment;

    /**
     * mysql information_schema.TABLES 表中没有该字段
     * charset从tableCollation 中截取
     *
     * @return
     */
    private String charset;
    //字段
    private List<TableColumnBo> tableColumnBoList;


    /**
     * oracle 使用
     */
    private String comments;


    public void setComments(String comments) {
        this.comments = comments;
        this.tableComment = comments;
    }

}
